package com.houtai.bean.dto.praise;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotNull;

@ApiModel(value="点赞所需参数", description="点赞所需参数")
public class PraiseDto {
    @NotNull(message = "作品id不能为空")
    @ApiModelProperty(value="作品id", name="works_id")
    private int works_id;


    @NotNull(message = "状态不能为空")
    @ApiModelProperty(value="0点赞1取消点赞", name="state")
    private int state;

    public int getWorks_id() {
        return works_id;
    }

    public void setWorks_id(int works_id) {
        this.works_id = works_id;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }
}
